﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="TomaInventario.aspx.cs" Inherits="Web.forms.TomaInventario" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="PanelUsuarios" runat="server" CssClass="pnlPrincipal">
        <table width="624" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td width="261" class="celdaTitulo">
                    <asp:Label ID="Label1" runat="server" CssClass="titForm">Toma Inventario - Tomas</asp:Label>
                </td>
                <td width="363" class="celdaTitulo" height="34">
                    <asp:Image ID="Banner" runat="server" ImageUrl="~/IMG/Banner.jpg" />
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <table width="95%">
                        <tr>
                            <td colspan="4" style="height: 3px;">
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Lbl_Nombre_Corto" runat="server" CssClass="lbl" Text="Nombre Corto" />
                            </td>
                            <td align="left" colspan="2">
                                <asp:TextBox ID="txtNombreCorto" runat="server" Width="150px" MaxLength="10" TabIndex="0" />
                                <asp:Label ID="lblUserId" Visible="false" runat="server" Text="-999" />
                            </td>
                            <td align="center" valign="top" rowspan="7">
                                <asp:Button ID="btnGrabar" runat="server" CssClass="save" OnClick="btnGrabar_Click"
                                    ToolTip="Grabar" />&nbsp;
                                <asp:Button ID="btnNuevo" runat="server" CssClass="new" OnClick="btnNuevo_Click"
                                    ToolTip="Nuevo Usuario" />
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Lbl_Nombres" runat="server" CssClass="lbl" Text="Nombre Completo" />
                            </td>
                            <td align="left" colspan="2">
                                <asp:TextBox ID="txtNombreCompleto" runat="server" Width="300px" TabIndex="1" />
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Lbl_Clave" runat="server" CssClass="lbl" Text="Clave" />
                            </td>
                            <td align="left" nowrap>
                                <asp:TextBox ID="txtClave" runat="server" onfocus="this.select();" MaxLength="8"
                                    Width="100px" TextMode="Password" TabIndex="2" />&nbsp;
                                <asp:TextBox ID="txtClave2" runat="server" Width="100px" onfocus="this.select();"
                                    MaxLength="8" TextMode="Password" TabIndex="3" ToolTip="Repetir Clave Del Usuario" />
                            </td>
                            <td>
                                <asp:LinkButton runat="server" ID="lbCambiarClave" Text="Cambiar Clave" OnClick="lbCambiarClave_Click"
                                    Visible="false" />
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="lblPerfil" runat="server" CssClass="lbl" Text="Perfil" />
                            </td>
                            <td align="left" colspan="3">
                                <asp:DropDownList ID="ddlPerfil" runat="server" Width="150px" Style="margin-left: 0px"
                                    TabIndex="4" OnSelectedIndexChanged="ddlPerfil_SelectedIndexChanged" AutoPostBack="true" />
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="lblLideres" runat="server" CssClass="lbl" Text="Seleccione Líder" />
                            </td>
                            <td align="left" colspan="3">
                                <asp:DropDownList ID="ddlLideres" runat="server" Width="200px" Style="margin-left: 0px" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" style="height: 3px;">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <div style="width: 100%; overflow: auto; height: 200px;">
                                    <asp:GridView ID="grvUsuarios" runat="server" AutoGenerateColumns="False" BorderColor="#E0040B"
                                        BorderStyle="Ridge" Width="100%" OnSelectedIndexChanged="grvUsuarios_SelectedIndexChanged"
                                        OnRowCommand="grvUsuarios_RowCommand" Style="margin-top: 0px" EnableModelValidation="True"
                                        OnRowDataBound="grvUsuarios_RowDataBound">
                                        <AlternatingRowStyle BackColor="silver" />
                                        <HeaderStyle BackColor="#343434" ForeColor="White" />
                                        <Columns>
                                            <asp:TemplateField FooterText="Usuario" HeaderText="Nombre Corto">
                                                <ItemTemplate>
                                                    <asp:Label ID="grvUsuarios_lblUserId" runat="server" CssClass="lbl" Visible="false"
                                                        Text='<%# Bind("UserId") %>' />
                                                    <asp:Label ID="grvUsuarios_lblNombreCorto" runat="server" CssClass="lbl" Text='<%# Bind("NombreCorto") %>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField FooterText="Nombre Completo" HeaderText="Nombre Completo">
                                                <ItemTemplate>
                                                    <asp:Label ID="grvUsuarios_lblNombreCompleto" runat="server" CssClass="lbl" Text='<%# Bind("NombreCompleto") %>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField FooterText="Perfil" HeaderText="Perfil">
                                                <ItemTemplate>
                                                    <asp:Label ID="grvUsuarios_lblGlosaPerfil" runat="server" CssClass="lbl" Text='<%# Bind("Perfil.Glosa") %>' />
                                                    <asp:Label ID="grvUsuarios_Lider" runat="server" Visible="false" CssClass="lbl" Text='<%# Bind("Lider") %>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField FooterText="Edicion" HeaderText="Acción">
                                                <ItemTemplate>
                                                    <asp:ImageButton ID="Btn_Edit" runat="server" ImageUrl="~/img/edit.gif" AlternateText="Editar"
                                                        CommandName="Select" ToolTip="Modificar" />
                                                    <asp:ImageButton ID="Btn_Delete" runat="server" ImageUrl="~/img/delete.gif" AlternateText="Eliminar"
                                                        CommandName="Eliminar" ToolTip="Eliminar" CommandArgument='<%# Bind("UserId") %>' />
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <asp:Label ID="lblEstado" runat="server" Visible="false" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>

